#!/usr/bin/ruby
###############
# author: David Christian Liedle <david.liedle@gmail.com>
# link:   http://nmox.org/
#

puts "Content-type: text/html\n\n"

puts "<html>"
puts " <head>"
puts "  <title>Ruby CGI OK!</title>"
puts " </head>"
puts " <body>"
puts "  <h1>Ruby CGI is working.</h1>"
puts "  <h2>This is Ruby running as CGI, NOT rails.</h2>"
puts "  <p>[ <a href=\"index.html\">Back</a> ]</p>"
puts "  <p>And now to do something useful:</p>"
puts "  <hr />"
puts "  <p>"

say = "   I love Aeysha!<br />\n"
puts say

say['love'] = "*love*"
puts say.upcase

5.times { puts say }

puts "  </p>"
puts " </body>"
puts "</html>"
